/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package gro.utilitarios;

import java.awt.Color;
import java.awt.Component;
import java.awt.Dimension;
import java.awt.Font;
import javax.swing.table.DefaultTableCellRenderer;
import javax.swing.JTable;

public class FormatoCabecera extends DefaultTableCellRenderer {

    Font normal = new Font("Times new roman", Font.PLAIN, 12);
    Font negrilla = new Font("Times new roman", Font.BOLD, 14);

    @Override
    public Component getTableCellRendererComponent(JTable table, Object value, boolean selected, boolean focused, int row, int column) {
        setEnabled(table == null || table.isEnabled());

        setHorizontalAlignment(0);
        setBackground(new Color(17, 53, 159));
        setForeground(Color.WHITE);//color de fondo
        table.setFont(negrilla);
        super.getTableCellRendererComponent(table, value, selected, focused, row, column);
        return this;
    }
}
